using Google.ProtocolBuffers;
using Google.ProtocolBuffers.Collections;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class ClientPerfReportReq : GeneratedMessageLite<ClientPerfReportReq, ClientPerfReportReq.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<ClientPerfReportReq, ClientPerfReportReq.Builder>
		{
			private bool resultIsReadOnly;
			private ClientPerfReportReq result;
			protected override ClientPerfReportReq.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override ClientPerfReportReq MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override ClientPerfReportReq DefaultInstanceForType
			{
				get
				{
					return ClientPerfReportReq.DefaultInstance;
				}
			}
			public BaseRequest BaseRequest
			{
				get
				{
					return this.result.BaseRequest;
				}
				set
				{
					this.SetBaseRequest(value);
				}
			}
			public string DeviceModel
			{
				get
				{
					return this.result.DeviceModel;
				}
				set
				{
					this.SetDeviceModel(value);
				}
			}
			public string DeviceBrand
			{
				get
				{
					return this.result.DeviceBrand;
				}
				set
				{
					this.SetDeviceBrand(value);
				}
			}
			public string OsName
			{
				get
				{
					return this.result.OsName;
				}
				set
				{
					this.SetOsName(value);
				}
			}
			public string OsVersion
			{
				get
				{
					return this.result.OsVersion;
				}
				set
				{
					this.SetOsVersion(value);
				}
			}
			public string LanguageVer
			{
				get
				{
					return this.result.LanguageVer;
				}
				set
				{
					this.SetLanguageVer(value);
				}
			}
			public uint EventIdCnt
			{
				get
				{
					return this.result.EventIdCnt;
				}
				set
				{
					this.SetEventIdCnt(value);
				}
			}
			public IPopsicleList<ClientPerfItem> ListList
			{
				get
				{
					return this.PrepareBuilder().list_;
				}
			}
			public int ListCount
			{
				get
				{
					return this.result.ListCount;
				}
			}
			public Builder()
			{
				this.result = ClientPerfReportReq.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(ClientPerfReportReq cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private ClientPerfReportReq PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					ClientPerfReportReq other = this.result;
					this.result = new ClientPerfReportReq();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override ClientPerfReportReq.Builder Clear()
			{
				this.result = ClientPerfReportReq.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override ClientPerfReportReq.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new ClientPerfReportReq.Builder(this.result);
				}
				return new ClientPerfReportReq.Builder().MergeFrom(this.result);
			}
			public override ClientPerfReportReq BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override ClientPerfReportReq.Builder MergeFrom(IMessageLite other)
			{
				if (other is ClientPerfReportReq)
				{
					return this.MergeFrom((ClientPerfReportReq)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override ClientPerfReportReq.Builder MergeFrom(ClientPerfReportReq other)
			{
				return this;
			}
			public override ClientPerfReportReq.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override ClientPerfReportReq.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(ClientPerfReportReq._clientPerfReportReqFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = ClientPerfReportReq._clientPerfReportReqFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 26u)
					{
						if (num3 <= 10u)
						{
							if (num3 == 0u)
							{
								throw InvalidProtocolBufferException.InvalidTag();
							}
							if (num3 == 10u)
							{
								BaseRequest.Builder builder = BaseRequest.CreateBuilder();
								if (this.result.hasBaseRequest)
								{
									builder.MergeFrom(this.BaseRequest);
								}
								input.ReadMessage(builder, extensionRegistry);
								this.BaseRequest = builder.BuildPartial();
								continue;
							}
						}
						else
						{
							if (num3 == 18u)
							{
								this.result.hasDeviceModel = input.ReadString(ref this.result.deviceModel_);
								continue;
							}
							if (num3 == 26u)
							{
								this.result.hasDeviceBrand = input.ReadString(ref this.result.deviceBrand_);
								continue;
							}
						}
					}
					else
					{
						if (num3 <= 42u)
						{
							if (num3 == 34u)
							{
								this.result.hasOsName = input.ReadString(ref this.result.osName_);
								continue;
							}
							if (num3 == 42u)
							{
								this.result.hasOsVersion = input.ReadString(ref this.result.osVersion_);
								continue;
							}
						}
						else
						{
							if (num3 == 50u)
							{
								this.result.hasLanguageVer = input.ReadString(ref this.result.languageVer_);
								continue;
							}
							if (num3 == 56u)
							{
								this.result.hasEventIdCnt = input.ReadUInt32(ref this.result.eventIdCnt_);
								continue;
							}
							if (num3 == 66u)
							{
								input.ReadMessageArray<ClientPerfItem>(num, text, this.result.list_, ClientPerfItem.DefaultInstance, extensionRegistry);
								continue;
							}
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public ClientPerfReportReq.Builder SetBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = value;
				return this;
			}
			public ClientPerfReportReq.Builder SetBaseRequest(BaseRequest.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = builderForValue.Build();
				return this;
			}
			public ClientPerfReportReq.Builder MergeBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseRequest && this.result.baseRequest_ != BaseRequest.DefaultInstance)
				{
					this.result.baseRequest_ = BaseRequest.CreateBuilder(this.result.baseRequest_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseRequest_ = value;
				}
				this.result.hasBaseRequest = true;
				return this;
			}
			public ClientPerfReportReq.Builder ClearBaseRequest()
			{
				this.PrepareBuilder();
				this.result.hasBaseRequest = false;
				this.result.baseRequest_ = null;
				return this;
			}
			public ClientPerfReportReq.Builder SetDeviceModel(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasDeviceModel = true;
				this.result.deviceModel_ = value;
				return this;
			}
			public ClientPerfReportReq.Builder ClearDeviceModel()
			{
				this.PrepareBuilder();
				this.result.hasDeviceModel = false;
				this.result.deviceModel_ = "";
				return this;
			}
			public ClientPerfReportReq.Builder SetDeviceBrand(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasDeviceBrand = true;
				this.result.deviceBrand_ = value;
				return this;
			}
			public ClientPerfReportReq.Builder ClearDeviceBrand()
			{
				this.PrepareBuilder();
				this.result.hasDeviceBrand = false;
				this.result.deviceBrand_ = "";
				return this;
			}
			public ClientPerfReportReq.Builder SetOsName(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasOsName = true;
				this.result.osName_ = value;
				return this;
			}
			public ClientPerfReportReq.Builder ClearOsName()
			{
				this.PrepareBuilder();
				this.result.hasOsName = false;
				this.result.osName_ = "";
				return this;
			}
			public ClientPerfReportReq.Builder SetOsVersion(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasOsVersion = true;
				this.result.osVersion_ = value;
				return this;
			}
			public ClientPerfReportReq.Builder ClearOsVersion()
			{
				this.PrepareBuilder();
				this.result.hasOsVersion = false;
				this.result.osVersion_ = "";
				return this;
			}
			public ClientPerfReportReq.Builder SetLanguageVer(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasLanguageVer = true;
				this.result.languageVer_ = value;
				return this;
			}
			public ClientPerfReportReq.Builder ClearLanguageVer()
			{
				this.PrepareBuilder();
				this.result.hasLanguageVer = false;
				this.result.languageVer_ = "";
				return this;
			}
			public ClientPerfReportReq.Builder SetEventIdCnt(uint value)
			{
				this.PrepareBuilder();
				this.result.hasEventIdCnt = true;
				this.result.eventIdCnt_ = value;
				return this;
			}
			public ClientPerfReportReq.Builder ClearEventIdCnt()
			{
				this.PrepareBuilder();
				this.result.hasEventIdCnt = false;
				this.result.eventIdCnt_ = 0u;
				return this;
			}
			public ClientPerfItem GetList(int index)
			{
				return this.result.GetList(index);
			}
			public ClientPerfReportReq.Builder SetList(int index, ClientPerfItem value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.list_[index] = value;
				return this;
			}
			public ClientPerfReportReq.Builder SetList(int index, ClientPerfItem.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.list_[index] = builderForValue.Build();
				return this;
			}
			public ClientPerfReportReq.Builder AddList(ClientPerfItem value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.list_.Add(value);
				return this;
			}
			public ClientPerfReportReq.Builder AddList(ClientPerfItem.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.list_.Add(builderForValue.Build());
				return this;
			}
			public ClientPerfReportReq.Builder AddRangeList(IEnumerable<ClientPerfItem> values)
			{
				this.PrepareBuilder();
				this.result.list_.Add(values);
				return this;
			}
			public ClientPerfReportReq.Builder ClearList()
			{
				this.PrepareBuilder();
				this.result.list_.Clear();
				return this;
			}
		}
		public const int BaseRequestFieldNumber = 1;
		public const int DeviceModelFieldNumber = 2;
		public const int DeviceBrandFieldNumber = 3;
		public const int OsNameFieldNumber = 4;
		public const int OsVersionFieldNumber = 5;
		public const int LanguageVerFieldNumber = 6;
		public const int EventIdCntFieldNumber = 7;
		public const int ListFieldNumber = 8;
		private static readonly ClientPerfReportReq defaultInstance;
		private static readonly string[] _clientPerfReportReqFieldNames;
		private static readonly uint[] _clientPerfReportReqFieldTags;
		private bool hasBaseRequest;
		private BaseRequest baseRequest_;
		private bool hasDeviceModel;
		private string deviceModel_ = "";
		private bool hasDeviceBrand;
		private string deviceBrand_ = "";
		private bool hasOsName;
		private string osName_ = "";
		private bool hasOsVersion;
		private string osVersion_ = "";
		private bool hasLanguageVer;
		private string languageVer_ = "";
		private bool hasEventIdCnt;
		private uint eventIdCnt_;
		private PopsicleList<ClientPerfItem> list_ = new PopsicleList<ClientPerfItem>();
		private int memoizedSerializedSize = -1;
		public static ClientPerfReportReq DefaultInstance
		{
			get
			{
				return ClientPerfReportReq.defaultInstance;
			}
		}
		public override ClientPerfReportReq DefaultInstanceForType
		{
			get
			{
				return ClientPerfReportReq.DefaultInstance;
			}
		}
		protected override ClientPerfReportReq ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseRequest BaseRequest
		{
			get
			{
				return this.baseRequest_ ?? BaseRequest.DefaultInstance;
			}
		}
		public string DeviceModel
		{
			get
			{
				return this.deviceModel_;
			}
		}
		public string DeviceBrand
		{
			get
			{
				return this.deviceBrand_;
			}
		}
		public string OsName
		{
			get
			{
				return this.osName_;
			}
		}
		public string OsVersion
		{
			get
			{
				return this.osVersion_;
			}
		}
		public string LanguageVer
		{
			get
			{
				return this.languageVer_;
			}
		}
		public uint EventIdCnt
		{
			get
			{
				return this.eventIdCnt_;
			}
		}
		public IList<ClientPerfItem> ListList
		{
			get
			{
				return this.list_;
			}
		}
		public int ListCount
		{
			get
			{
				return this.list_.Count;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				if (!this.hasBaseRequest)
				{
					return false;
				}
				if (!this.hasEventIdCnt)
				{
					return false;
				}
				if (!this.BaseRequest.IsInitialized)
				{
					return false;
				}
				bool result;
				using (IEnumerator<ClientPerfItem> enumerator = this.ListList.GetEnumerator())
				{
					while (enumerator.MoveNext())
					{
						ClientPerfItem current = enumerator.get_Current();
						if (!current.IsInitialized)
						{
							result = false;
							return result;
						}
					}
					return true;
				}
				return result;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseRequest)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseRequest);
				}
				if (this.hasDeviceModel)
				{
					num += CodedOutputStream.ComputeStringSize(2, this.DeviceModel);
				}
				if (this.hasDeviceBrand)
				{
					num += CodedOutputStream.ComputeStringSize(3, this.DeviceBrand);
				}
				if (this.hasOsName)
				{
					num += CodedOutputStream.ComputeStringSize(4, this.OsName);
				}
				if (this.hasOsVersion)
				{
					num += CodedOutputStream.ComputeStringSize(5, this.OsVersion);
				}
				if (this.hasLanguageVer)
				{
					num += CodedOutputStream.ComputeStringSize(6, this.LanguageVer);
				}
				if (this.hasEventIdCnt)
				{
					num += CodedOutputStream.ComputeUInt32Size(7, this.EventIdCnt);
				}
				using (IEnumerator<ClientPerfItem> enumerator = this.ListList.GetEnumerator())
				{
					while (enumerator.MoveNext())
					{
						ClientPerfItem current = enumerator.get_Current();
						num += CodedOutputStream.ComputeMessageSize(8, current);
					}
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private ClientPerfReportReq()
		{
		}
		public ClientPerfItem GetList(int index)
		{
			return this.list_[index];
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] clientPerfReportReqFieldNames = ClientPerfReportReq._clientPerfReportReqFieldNames;
			if (this.hasBaseRequest)
			{
				output.WriteMessage(1, clientPerfReportReqFieldNames[0], this.BaseRequest);
			}
			if (this.hasDeviceModel)
			{
				output.WriteString(2, clientPerfReportReqFieldNames[2], this.DeviceModel);
			}
			if (this.hasDeviceBrand)
			{
				output.WriteString(3, clientPerfReportReqFieldNames[1], this.DeviceBrand);
			}
			if (this.hasOsName)
			{
				output.WriteString(4, clientPerfReportReqFieldNames[6], this.OsName);
			}
			if (this.hasOsVersion)
			{
				output.WriteString(5, clientPerfReportReqFieldNames[7], this.OsVersion);
			}
			if (this.hasLanguageVer)
			{
				output.WriteString(6, clientPerfReportReqFieldNames[4], this.LanguageVer);
			}
			if (this.hasEventIdCnt)
			{
				output.WriteUInt32(7, clientPerfReportReqFieldNames[3], this.EventIdCnt);
			}
			if (this.list_.Count > 0)
			{
				output.WriteMessageArray<ClientPerfItem>(8, clientPerfReportReqFieldNames[5], this.list_);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseRequest)
			{
				num ^= this.baseRequest_.GetHashCode();
			}
			if (this.hasDeviceModel)
			{
				num ^= this.deviceModel_.GetHashCode();
			}
			if (this.hasDeviceBrand)
			{
				num ^= this.deviceBrand_.GetHashCode();
			}
			if (this.hasOsName)
			{
				num ^= this.osName_.GetHashCode();
			}
			if (this.hasOsVersion)
			{
				num ^= this.osVersion_.GetHashCode();
			}
			if (this.hasLanguageVer)
			{
				num ^= this.languageVer_.GetHashCode();
			}
			if (this.hasEventIdCnt)
			{
				num ^= this.eventIdCnt_.GetHashCode();
			}
			using (IEnumerator<ClientPerfItem> enumerator = this.list_.GetEnumerator())
			{
				while (enumerator.MoveNext())
				{
					ClientPerfItem current = enumerator.get_Current();
					num ^= current.GetHashCode();
				}
			}
			return num;
		}
		public override bool Equals(object object_0)
		{
			ClientPerfReportReq clientPerfReportReq = object_0 as ClientPerfReportReq;
			if (clientPerfReportReq == null)
			{
				return false;
			}
			if (this.hasBaseRequest != clientPerfReportReq.hasBaseRequest || (this.hasBaseRequest && !this.baseRequest_.Equals(clientPerfReportReq.baseRequest_)))
			{
				return false;
			}
			if (this.hasDeviceModel != clientPerfReportReq.hasDeviceModel || (this.hasDeviceModel && !this.deviceModel_.Equals(clientPerfReportReq.deviceModel_)))
			{
				return false;
			}
			if (this.hasDeviceBrand != clientPerfReportReq.hasDeviceBrand || (this.hasDeviceBrand && !this.deviceBrand_.Equals(clientPerfReportReq.deviceBrand_)))
			{
				return false;
			}
			if (this.hasOsName != clientPerfReportReq.hasOsName || (this.hasOsName && !this.osName_.Equals(clientPerfReportReq.osName_)))
			{
				return false;
			}
			if (this.hasOsVersion != clientPerfReportReq.hasOsVersion || (this.hasOsVersion && !this.osVersion_.Equals(clientPerfReportReq.osVersion_)))
			{
				return false;
			}
			if (this.hasLanguageVer != clientPerfReportReq.hasLanguageVer || (this.hasLanguageVer && !this.languageVer_.Equals(clientPerfReportReq.languageVer_)))
			{
				return false;
			}
			if (this.hasEventIdCnt != clientPerfReportReq.hasEventIdCnt || (this.hasEventIdCnt && !this.eventIdCnt_.Equals(clientPerfReportReq.eventIdCnt_)))
			{
				return false;
			}
			if (this.list_.Count != clientPerfReportReq.list_.Count)
			{
				return false;
			}
			for (int i = 0; i < this.list_.Count; i++)
			{
				if (!this.list_[i].Equals(clientPerfReportReq.list_[i]))
				{
					return false;
				}
			}
			return true;
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<ClientPerfReportReq, ClientPerfReportReq.Builder>.PrintField("BaseRequest", this.hasBaseRequest, this.baseRequest_, writer);
			GeneratedMessageLite<ClientPerfReportReq, ClientPerfReportReq.Builder>.PrintField("DeviceModel", this.hasDeviceModel, this.deviceModel_, writer);
			GeneratedMessageLite<ClientPerfReportReq, ClientPerfReportReq.Builder>.PrintField("DeviceBrand", this.hasDeviceBrand, this.deviceBrand_, writer);
			GeneratedMessageLite<ClientPerfReportReq, ClientPerfReportReq.Builder>.PrintField("OsName", this.hasOsName, this.osName_, writer);
			GeneratedMessageLite<ClientPerfReportReq, ClientPerfReportReq.Builder>.PrintField("OsVersion", this.hasOsVersion, this.osVersion_, writer);
			GeneratedMessageLite<ClientPerfReportReq, ClientPerfReportReq.Builder>.PrintField("LanguageVer", this.hasLanguageVer, this.languageVer_, writer);
			GeneratedMessageLite<ClientPerfReportReq, ClientPerfReportReq.Builder>.PrintField("EventIdCnt", this.hasEventIdCnt, this.eventIdCnt_, writer);
			GeneratedMessageLite<ClientPerfReportReq, ClientPerfReportReq.Builder>.PrintField<ClientPerfItem>("List", this.list_, writer);
		}
		public static ClientPerfReportReq ParseFrom(byte[] data)
		{
			return ClientPerfReportReq.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private ClientPerfReportReq MakeReadOnly()
		{
			this.list_.MakeReadOnly();
			return this;
		}
		public static ClientPerfReportReq.Builder CreateBuilder()
		{
			return new ClientPerfReportReq.Builder();
		}
		public override ClientPerfReportReq.Builder ToBuilder()
		{
			return ClientPerfReportReq.CreateBuilder(this);
		}
		public override ClientPerfReportReq.Builder CreateBuilderForType()
		{
			return new ClientPerfReportReq.Builder();
		}
		public static ClientPerfReportReq.Builder CreateBuilder(ClientPerfReportReq prototype)
		{
			return new ClientPerfReportReq.Builder(prototype);
		}
		static ClientPerfReportReq()
		{
			ClientPerfReportReq.defaultInstance = new ClientPerfReportReq().MakeReadOnly();
			ClientPerfReportReq._clientPerfReportReqFieldNames = new string[]
			{
				"BaseRequest",
				"DeviceBrand",
				"DeviceModel",
				"EventIdCnt",
				"LanguageVer",
				"List",
				"OsName",
				"OsVersion"
			};
			ClientPerfReportReq._clientPerfReportReqFieldTags = new uint[]
			{
				10u,
				26u,
				18u,
				56u,
				50u,
				66u,
				34u,
				42u
			};
			object.ReferenceEquals(micromsg.Proto.ClientPerfReportReq.Descriptor, null);
		}
	}
}
